import Vue from 'vue'
import VueRouter from 'vue-router'
import Search from '@/pages/Search'
Vue.use(VueRouter)
export default new VueRouter({
    mode:'history',
    routes:[
        {
            name: 'search',
            path: '/search',
            component:Search
        },
        {
            path:'/',
            redirect: '' //首页路径
        }
    ]
})